{% extends "base.html" %}

{% block title %} 用户登录 {% endblock %}

{% block content %}
<form class="form-horizontal form-pos-up" action="/login" method="post" id="loginform">
<fieldset>
    <legend>用户登录</legend>
  <div class="control-group" id="namediv">
    <label class="control-label" for="inputName">用户名:</label>
    <div class="controls">
        <input type="text" name="username" id="username" placeholder="请输入用户名"
        onfocus="clearitem('#errorname', '#namediv')" />
      <span class="hidden" id="errorname">请输入正确的用户名</span>
    </div>
  </div>
  <div class="control-group" id="pwddiv">
    <label class="control-label" for="inputPassword">密码:</label>
    <div class="controls">
        <input type="password" name="passwd" id="passwd" placeholder="请输入密码" 
        onfocus="clearitem('#errorpwd', '#pwddiv')" />
      <span class="hidden" id="errorpwd">请输入正确的密码</span>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button type="button" id="login" class="btn btn-primary btn-left" onclick="validate()">登录</button>
      <a href="/signup" class='blank'>免费注册</a>
    </div>
  </div>
  </fieldset>
</form>


{% endblock %}
